package clientGUI.generalPanels.Controllers;

import clientGUI.Controllers.Controller;
import clientserver.Client;
import java.io.*;

import college.RequestTreatment;

public class InitController  extends  Controller {
	


	 public InitController(String host, int port) {
	
			System.out.println("Connect to "+host+" via port "+port);
		
			
			client= new Client(host,port);
			
			
			

			
			
			
			
		
	
	}
	 
	public boolean isconnected()
	{
		return client.isConnected();
	}


public void approveClosure(int rid){
	RequestTreatment r = new RequestTreatment(client,rid);
	r.loadfromdb();
	r.setcurrentstage(16);
	r.updatestageindb();
}

	


}
